<p>
<%=render @single_room.sender%> 和 <%=render @single_room.receiver%> 的聊天
</p>
<div id="messages">
     <%= render @messages %>
</div>
<div ">
  <br> <br>
</div>
<div class="form-group msg-form">
  <%= form_with(model: [@single_room ,@message], remote: true, class: "d-flex" ) do |f| %>
    <%= f.text_field :content, id: 'chat-text', class: "form-control msg-content", autocomplete: 'off' %>
    <%= f.submit "发送", data: { disable_with: false }, class: "btn btn-primary" %>
  <% end %>
</div>